import request from '@/utils/request'

// 查询Latest列表
export function listLatest(query) {
  return request({
    url: '/buss/latest/list',
    method: 'get',
    params: query
  })
}

// 查询Latest详细
export function getLatest(id) {
  return request({
    url: '/buss/latest/' + id,
    method: 'get'
  })
}

// 新增Latest
export function addLatest(data) {
  return request({
    url: '/buss/latest',
    method: 'post',
    data: data
  })
}

// 修改Latest
export function updateLatest(data) {
  return request({
    url: '/buss/latest',
    method: 'put',
    data: data
  })
}

// 删除Latest
export function delLatest(id) {
  return request({
    url: '/buss/latest/' + id,
    method: 'delete'
  })
}
